<div ng-controller="reportCtrl" class="cry">
    <div class="cry_title">
        <h3 class="mainTitle"> 
            报备列表
        </h3>
        <div class="tools">
            <form>
                <ul>
                    <li>
                        <div search-input ng-model="memQueryParam.keyword" placeholder="举办/举办人电话"></div>
                    </li>
                    <li class="time_box">
                        <div class="input-daterange input-group" style="width: 220px;display: inline-table;vertical-align:middle;" id="order-datepicker-range">
                            <span class="input-icon">
                                <input type="text" class="form-control input-sm" ng-click="startOrderOpen = !startOrderOpen" datepicker-popup="yyyy-MM-dd" ng-model="memQueryParam.startDate" is-open="startOrderOpen" ng-init="startOrderOpen = false" max-date="memQueryParam.endDate" close-text="Close" placeholder="开始时间" />
                                <i class="fa fa-times-circle" data-ng-click="memQueryParam.startDate=''"></i>
                                <i class="iconfont icon-rili"></i>
                            </span>
                            <span class="input-group-addon">至</span>
                            <span class="input-icon">
                                <input type="text" class="form-control input-sm" ng-click="endOrderOpen = !endOrderOpen" datepicker-popup="yyyy-MM-dd" ng-model="memQueryParam.endDate" is-open="endOrderOpen" ng-init="endOrderOpen = false" min-date="memQueryParam.startDate" close-text="Close" placeholder="结束时间"/>
                                <i class="fa fa-times-circle" data-ng-click="memQueryParam.endDate=''"></i>
                                <i class="iconfont icon-rili"></i> 
                            </span>
                        </div>
                    </li>
                    <li>
                        <button type="submit" class="btn btn-primary" ng-click="searchDate()">搜索</button>
                    </li>
                </ul>
            </form>
        </div>
    </div>
    <div class="container-fluid bg-white">
            <table ng-table="tableParams" class="table table-hover table-bordered" template-pagination="templates/custom-pager.html">
                <tbody>
                <tr ng-repeat="item in resule">
                    <td data-title="'报备编号'" data-ng-bind="item.code"></td>
                    <td data-title="'报备时间'" data-ng-bind="item.created_at"></td>
                    <td data-title="'举办人'" data-ng-bind="item.user_name" ></td>
                    <td data-title="'电话'" data-ng-bind="item.phone"></td>
                    <td data-title="'身份证'" data-ng-bind="item.id_card"></td>
                    <td data-title="'开始时间'" data-ng-bind="item.start_date"></td>
                    <td data-title="'结束时间'" data-ng-bind="item.end_date"></td>
                    <td data-title="'举办原因'" data-ng-bind="item.reason" ></td>
                    <td data-title="'举办地点'" data-ng-bind="item.address"></td>
                    <td data-title="'就餐人数'" data-ng-bind="item.repast_members"></td>
                    <td data-title="'厨师'" data-ng-bind="item.cook_name"></td>
                    <td data-title="'操作'" style="width:45px;"><a href="#app/report/info?id={{item.id}}">查看</a></td>
                    <td data-title="'指导表'" style="width:60px;">
                        <a href="#/app/report/record?code={{item.code}}&&user_name={{item.user_name}}&&cook_name={{item.cook_name}}&&address={{item.address}}{{item.address_detail}}" style="color:red" ng-show="item.is_check=='N'">未填写</a>
                        <a href="#/app/report/recordDetail?code={{item.code}}" ng-show="item.is_check!='N'">已填写</a>
                    </td>
                </tr>
                <tr>
                    <td colspan="13" ng-show="resule.length==0" style="text-align: center;">
                        暂无数据
                    </td>
                </tr>
                </tbody>
            </table>
        <div data-ng-show="!isInit"><loading></loading></div>
    </div>
</div>